package com.owen.he.jee.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.owen.he.jee.dao.ExportDao;
import com.owen.he.jee.model.Student;

@Repository
public class ExportDaoImpl implements ExportDao {
	@Autowired
	BaseDAOV2Impl baseDao;
	
	
	//查询
	@Override
	public List exprotStudentList(Map<String,Object> map) {
		String sqlKey = "export_student";
		return baseDao.selectInfoByPara(sqlKey, map);
	}


	@Override
	public void saveStudent(Student s) {
		String sqlKey = "import_student";
		 baseDao.insert(sqlKey, s);
	}


	@Override
	public List<Map> yjResultData(String columnsSql) {
		String sqlKey = "export_jjyjdr";
		Map map = new HashMap<>();
		map.put("columns", columnsSql);
		return baseDao.selectInfoByPara(sqlKey, map);
	}
	
	
}
